{if $type == 'warn'}
	{assign var=color value="#fee2a8"}
	{assign var=icon value="error.png"}
{/if}
{if $type == "success"}
	{assign var=color value="#d6f0e0"}
	{assign var=icon value="button_ok.png"}

{/if}

{if !$message}
    {assign var=message value=$title} {* backwards compatiblity *}
{/if}

<div class="message"
	style="background : {$color};
                {if $style}{$style}{/if}">

	<img src="graphic/{$icon}" class="message_icon" />

	<div class="message_text">{$message}</div>
</div>
